package com.ftg.learn.controller;

import com.ftg.learn.service.SysUserService;
import com.ftg.learn.util.R;
import com.ftg.learn.vo.SysUserListVo;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * 控制层类
 *
 * @author 布衣
 */
@RestController
@Api(tags="用户表模块")
public class SysUserController {

    @Resource
    private SysUserService sysUserService;

    /**
     * 查询所有用户
     * @return R
     */
    @GetMapping("/all")
    @ApiOperation(value="查询所有用户")
    public R<String> all(){
        return sysUserService.all();
    }

}
